include $(top_srcdir)/gnome-doc-utils.make
dist-hook: doc-dist-hook

DOC_MODULE = florence
DOC_ENTITIES = gfdl.dbk
DOC_INCLUDES =
DOC_FIGURES = figures/behaviour.png figures/florence.png figures/layout.png figures/style.png figures/window.png
DOC_LINGUAS = fr

man_MANS = florence.1 florence_applet.1
EXTRA_DIST = $(man_MANS)

install-data-hook:
        @list='$(man_MANS)';                              \
        for i in $$list; do                               \
          s=`echo $$i | sed -e 's/.*\\(.\\)$$/\1/'`;      \
          n=`echo $$i | sed -e 's/-[^-]*$$//'`;           \
          f="$$n.$$s";                                    \
          echo "cd $(DESTDIR)$(mandir)/man$$s";           \
          cd $(DESTDIR)$(mandir)/man$$s;                  \
          echo "rm -f $$f";                               \
          rm -f $$f;                                      \
          echo "ln -s $$i $$f";                           \
          ln -s $$i $$f;                                  \
        done

uninstall-local:
        @list='$(man_MANS)';                              \
        for i in $$list; do                               \
          s=`echo $$i | sed -e 's/.*\\(.\\)$$/\1/'`;      \
          n=`echo $$i | sed -e 's/-[^-]*$$//'`;           \
          f="$$n.$$s";                                    \
          echo " rm -f $(DESTDIR)$(mandir)/man$$s/$$f";   \
          rm -f $(DESTDIR)$(mandir)/man$$s/$$f;           \
        done

